package a.f.n;

import a.c.d;
import a.c.e;
import a.c.m;
import a.d.f;
import a.d.w;
import a.f.cd;

public class t
  extends k
{
  private k.c_ o;
  private boolean p;
  public static boolean q;
  
  public t()
  {
    this(k.b_.a);
  }
  
  public t(k.b_ paramb_)
  {
    this(paramb_, k.c_.d);
  }
  
  public t(k.b_ paramb_, k.c_ paramc_)
  {
    super(paramb_);
    this.o = paramc_;
  }
  
  public k.c_ e()
  {
    return this.o;
  }
  
  public void a(k.c_ paramc_)
  {
    this.o = paramc_;
  }
  
  protected byte d(e parame)
  {
    return 0;
  }
  
  public boolean f()
  {
    return this.p;
  }
  
  public void a(boolean paramBoolean)
  {
    this.p = paramBoolean;
  }
  
  protected v a(e parame, byte paramByte)
  {
    boolean bool2 = k.n;
    boolean bool1 = k.m;
    v localv1 = a(parame);
    if (!bool2) {
      if (parame.e() == 0)
      {
        a(parame, paramByte, localv1);
        return localv1;
      }
    }
    if (!bool2)
    {
      if (this.p)
      {
        if (bool2) {
          break label79;
        }
        localv1.h(-localv1.d() - this.g);
      }
    }
    else {
      if (!bool1) {
        break label82;
      }
    }
    label79:
    localv1.h(-localv1.d());
    label82:
    f localf1 = new f(-1.797693134862316E+308D, 1.7976931348623157E+308D, 0.0D);
    f localf2 = new f(-1.797693134862316E+308D, 1.7976931348623157E+308D, 0.0D);
    Object localObject1 = null;
    Object localObject2 = null;
    Object localObject3 = parame.n();
    Object localObject5;
    Object localObject6;
    do
    {
      if (!((m)localObject3).e()) {
        break;
      }
      localObject4 = ((m)localObject3).a();
      localObject5 = ((d)localObject4).f();
      localObject6 = b((e)localObject5);
      if (bool2) {
        break label298;
      }
      if (bool1) {
        break label295;
      }
      if (localObject1 == null) {
        localObject1 = localObject6;
      }
      localObject2 = localObject6;
      ((v)localObject6).e(localf2, this.g);
      double d1 = ((v)localObject6).c();
      ((v)localObject6).a(3).a(0.0D, d1, ((v)localObject6).b());
      ((v)localObject6).d(localf1, this.g);
      double d2 = ((v)localObject6).b();
      localf1.b(0.0D, d1, d2);
      ((v)localObject6).e(localf1);
      ((v)localObject6).n();
      ((m)localObject3).f();
    } while (!bool1);
    this.o.a(localv1, this.l, this.g);
    if (!bool2) {
      label295:
      localv1.n();
    }
    label298:
    if (this.p) {
      localObject3 = new db.c_(new w(0.0D, localf2.d()));
    } else {
      localObject3 = new db.c_(new w(0.0D, localf2.d() - localv1.p() / 2.0D));
    }
    Object localObject4 = parame.n();
    do
    {
      if (!((m)localObject4).e()) {
        break;
      }
      localObject5 = ((m)localObject4).a();
      localObject6 = ((d)localObject5).f();
      if (bool2) {
        break label472;
      }
      v localv2 = b((e)localObject6);
      db.a_ locala_ = a((d)localObject5, localv2);
      locala_.a((db.c_)localObject3);
      locala_.f(1);
      locala_.e(0);
      locala_.h();
      ((m)localObject4).f();
      if (bool1) {
        break label470;
      }
    } while (!bool1);
    if (!bool2) {
      localv1.a(this.l);
    }
    label470:
    label472:
    if (!bool2)
    {
      if (localObject1 != null)
      {
        localObject4 = new f(Math.min(localv1.h(), localObject1.b()), Math.max(localv1.g(), localObject2.b()), localObject1.c());
        localv1.m((f)localObject4);
      }
      a(parame, paramByte, localv1);
    }
    return localv1;
  }
  
  private void a(e parame, byte paramByte, v paramv)
  {
    boolean bool2 = k.n;
    boolean bool1 = k.m;
    if (parame.i() == null) {
      return;
    }
    cd localcd = c(parame);
    db.b_ localb_ = a(parame, paramv);
    if (!bool2)
    {
      switch (paramByte)
      {
      case 0: 
        if (!bool2) {}
        switch (localcd.b())
        {
        case 1: 
        case 3: 
        case 5: 
        case 6: 
        case 7: 
        default: 
          if (bool2) {
            break label195;
          }
          if (!bool1) {
            break;
          }
        case 4: 
          localb_.b(0, true);
          if (bool2) {
            break label195;
          }
          if (!bool1) {
            break;
          }
        case 2: 
          localb_.e(0, true);
          localb_.c(0, true);
          if (bool2) {
            break label195;
          }
          if (!bool1) {
            break;
          }
        case 8: 
          localb_.c(0, true);
        }
        localb_.f(1);
        if (bool2) {
          return;
        }
        if (!bool1) {
          break;
        }
      case 1: 
        if (!bool2) {}
        switch (localcd.b())
        {
        case 1: 
        case 3: 
        case 5: 
        case 6: 
        case 7: 
        default: 
          localb_.d(1, true);
          if (bool2) {
            break label355;
          }
          if (!bool1) {
            break;
          }
        case 4: 
          localb_.b(0, true);
          localb_.d(1, true);
          if (bool2) {
            break label355;
          }
          if (!bool1) {
            break;
          }
        case 2: 
          localb_.e(0, true);
          localb_.c(0, true);
          localb_.d(1, true);
          if (bool2) {
            break label355;
          }
          if (!bool1) {
            break;
          }
        case 8: 
          localb_.c(0, true);
          localb_.d(1, true);
        }
        localb_.d(1);
        if (bool2) {
          return;
        }
        if (!bool1) {
          break;
        }
      case 2: 
        if (!bool2) {}
        switch (localcd.b())
        {
        case 1: 
          localb_.d(0, true);
          localb_.c(1, true);
          if (bool2) {
            break label515;
          }
          if (!bool1) {
            break;
          }
        case 4: 
          localb_.b(0, true);
          localb_.d(0, true);
          localb_.c(1, true);
          if (bool2) {
            break label515;
          }
          if (!bool1) {
            break;
          }
        case 2: 
          localb_.e(0, true);
          localb_.c(1, true);
          if (bool2) {
            break label515;
          }
          if (!bool1) {
            break;
          }
        case 3: 
        case 5: 
        case 6: 
        case 7: 
        case 8: 
        default: 
          localb_.c(1, true);
        }
        localb_.g(1);
        if (bool2) {
          return;
        }
        if (!bool1) {
          break;
        }
      case 3: 
        label195:
        label355:
        if (!bool2) {}
        label515:
        switch (localcd.b())
        {
        case 1: 
          localb_.d(0, true);
          if (bool2) {
            break label633;
          }
          if (!bool1) {
            break;
          }
        case 4: 
          localb_.b(0, true);
          localb_.d(1, true);
          if (bool2) {
            break label633;
          }
          if (!bool1) {
            break;
          }
        case 2: 
          localb_.e(0, true);
          break;
        }
        localb_.e(1);
        label633:
        break;
      }
      paramv.l();
    }
  }
}


/* Location:           E:\idea\
 * Qualified Name:     a.f.n.t
 * JD-Core Version:    0.7.0.1
 */